﻿
Public Class interval
    Public Shared Function invoke(ByVal inlineScript As inlineScript, ByVal action As String, _
                                  ByVal intervalMS As Int64, Optional ByRef actionTarget As String = Nothing) As String
        assert(Not inlineScript Is Nothing, "inlineScript is nothing.")
        actionTarget += window.name(inlineScript) + ".setInterval(" + action + "," + Convert.ToString(intervalMS) + ")"
        Return actionTarget
    End Function
End Class
